package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SysMsgUser;
import com.ruoyi.system.service.SysMsgUserService;
import com.ruoyi.system.mapper.SysMsgUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author xdh
* @description 针对表【sys_msg_user】的数据库操作Service实现
* @createDate 2024-07-04 14:07:16
*/
@Service
public class SysMsgUserServiceImpl extends ServiceImpl<SysMsgUserMapper, SysMsgUser>
    implements SysMsgUserService{


    @Autowired
    private SysMsgUserMapper sysMsgUserMapper;
    @Override
    public Boolean updateMsgFlag1(Long userId) {

        return sysMsgUserMapper.updateMsgFlagByUserId(userId);
    }

    @Override
    public Boolean updateMsgFlag0ById(Long userId, Integer msgId) {
        return sysMsgUserMapper.updateMsgFlag0ById(userId,msgId);
    }
}




